﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfApplication1.Models
{
    class LinkModel
    {
        private string _id;
        private IDictionary<string, object> _from;
        private string _message;
        private string _story;
        private IDictionary<string, object> _story_tags;
        private string _picture;
        private string _link; // link chia se
        private string _name;
        private string _caption;
        private string _description;
        // Thieu phan Action
        private string _created_time;
        private string _updated_time;
        private string _likeCountText;
        private string _commentsCountText;

        public string Id
        {
            get { return _id; }
        }

        public string FromId
        {
            get { return (string)_from["id"]; }
        }

        public string FromName
        {
            get { return (string)_from["name"]; }
        }

        public string Message
        {
            get { return _message; }
        }

        public string Story
        {
            get { return _story; }
        }

        public string Picture
        {
            get { return _picture; }
        }

        public string Link
        {
            get { return _link; }
        }

        public string Name
        {
            get { return _name; }
        }

        public string Caption
        {
            get { return _caption; }
        }

        public string Description
        {
            get { return _description; }
        }

        public string UpdatedTime
        {
            get { return _updated_time; }
        }

        public string LikeCountText
        {
            get { return _likeCountText; }
            set { _likeCountText = value; }
        }

        public string CommentCountText
        {
            get { return _commentsCountText; }
            set { _commentsCountText = value; }
        }


        public LinkModel(string id, IDictionary<string, object> from, string message, string story, IDictionary<string, object> story_tags, string picture, string link,
            string name, string caption, string description, string created_time, string updated_time, string likeCountText, string commentsCountText)
        {
            _id = id;
            _from = from;
            _message = message;
            _story = story;
            _story_tags = story_tags;
            _picture = picture;
            _name = name;
            _caption = caption;
            _description = description;
            _created_time = created_time;
            _updated_time = updated_time;
            _likeCountText = likeCountText;
            _commentsCountText = commentsCountText;
        }
    }
}
